package com.huanri.patterns.observer;

import java.util.ArrayList;
import java.util.List;

/**
 * Subject
 * @author Nemo
 * @date 2012-8-20 at MyCode
 */
public abstract class Citizen {

	List pols;
	String help = "normal";
	
	public void setHelp(String help){
		this.help = help;
	}
	public String getHelp(){
		return this.help;
	}
	public abstract void sendMessage(String help);
	
	public void setPoliceMen(){
		this.pols = new ArrayList();
	}
	public void resigister(Policeman pol){
		this.pols.add(pol);
	}
}
